﻿/*--------------------------------------------------------------------------------
 * Adaptive Intelligence - Foundation Framework Class Library
 * Version 2.00
 * 
 * CRC-32 Exception Event Arguments Class
 *      Provides an event arguments definition for exceptions encountered during
 * CRC-32 processing.     
 *------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------
 * System Imports
 *------------------------------------------------------------------------------*/
using System;

namespace Adaptive.Foundation.IO.Zip
{
    /// <summary>
    /// Provides an event arguments definition for exceptions encountered during
    /// CRC-32 processing.  
    /// </summary>
    public class CrcExceptionEventArgs : ExceptionEventArgs
    {
        /*--------------------------------------------------------------------------------
         * Constructor / Dispose / Destructor Methods
         *------------------------------------------------------------------------------*/
        #region Constructor / Dispose / Destructor Methods
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <remarks>
        /// This is the default constructor.
        /// </remarks>
        public CrcExceptionEventArgs()
            : base()
        {
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="exceptionCaught">
        /// The <see cref="Exception"/> that caused the event.
        /// </param>
        public CrcExceptionEventArgs(Exception exceptionCaught)
            : base(exceptionCaught)
        {
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="source">
        /// A string description of the event source.
        /// </param>
        public CrcExceptionEventArgs(string source)
            : base(source)
        {
        }
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        /// <param name="source">
        /// A string description of the event source.
        /// </param>
        /// <param name="exceptionCaught">
        /// The <see cref="Exception"/> that caused the event.
        /// </param>
        public CrcExceptionEventArgs(string source, Exception exceptionCaught)
            : base(source, exceptionCaught)
        {
        }
        #endregion
    }
}